.#{$form-prefix-cls} {
  .#{$form-item-prefix-cls}-label {
    box-sizing: border-box;
    color: $text-color;
    float: left;
    font-size: $font-size-base;
    line-height: 1;
    padding: 10px 12px 10px 0;
    text-align: right;
    vertical-align: middle;
  }
  &-label-left .#{$form-item-prefix-cls}-label {
    text-align: left;
  }
  &-label-top .#{$form-item-prefix-cls}-label {
    display: inline-block;
    float: none;
    padding: 0 0 10px;
  }

  &-inline {
    .#{$form-item-prefix-cls} {
      display: inline-block;
      margin-right: 10px;
      vertical-align: top;
    }
  }
}

.#{$form-item-prefix-cls} {
  @include clearfix();
  margin-bottom: 24px;
  vertical-align: top;

  &-content {
    font-size: $font-size-base;
    line-height: 32px;
    position: relative;
  }

  & & {
    margin-bottom: 0;
  }

  & & &-content {
    margin-left: 0 !important;
  }

  &-error-tip {
    color: $error-color;
    left: 0;
    line-height: 1;
    padding-top: 6px;
    position: absolute;
    top: 100%;
  }

  &-required {
    .#{$form-item-prefix-cls}-label:before {
      color: $error-color;
      content: '*';
      display: inline-block;
      font-family: SimSun;
      font-size: $font-size-base;
      line-height: 1;
      margin-right: 4px;
    }
  }

  &-error {
    // todo
  }
}

.#{$form-prefix-cls}-hide-required-mark .#{$form-item-prefix-cls}-required {
  .#{$form-item-prefix-cls}-label:before {
    display: none;
  }
}
